<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Hopper_EV2000_Boost_DLL: hopper_ev2000_dll.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Hopper_EV2000_Boost_DLL
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">hopper_ev2000_dll.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;windows.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
</div>
<p><a href="hopper__ev2000__dll_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03d94e56164bec682d9470223c262b01"></a><!-- doxytag: member="hopper_ev2000_dll.h::DllMain" ref="a03d94e56164bec682d9470223c262b01" args="(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)" -->
BOOL WINAPI __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>DllMain</b> (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#ac30f818756ad325c74c0b0b0e1bd8252">hopper_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Init.  <a href="#ac30f818756ad325c74c0b0b0e1bd8252"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a663d457fe18f6b447e93b26ef6b2ee0c">hopper_init_prepare_mode_d2xx</a> (int mode, int inp_par, int port_No, char *vpPort_name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization, set mode d2xx and prepare.  <a href="#a663d457fe18f6b447e93b26ef6b2ee0c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa19ca8f37ee230a584820d7b4b27f62e"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_init_prepare_mode_d2xx_portNo" ref="aa19ca8f37ee230a584820d7b4b27f62e" args="(int mode, int port_No)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#aa19ca8f37ee230a584820d7b4b27f62e">hopper_init_prepare_mode_d2xx_portNo</a> (int mode, int port_No)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization, set mode d2xx and prepare calls <a class="el" href="hopper__ev2000__dll_8h.html#a663d457fe18f6b447e93b26ef6b2ee0c" title="Initialization, set mode d2xx and prepare.">hopper_init_prepare_mode_d2xx(int mode, int inp_par, int port_No, char * vpPort_name)</a> with parameters inp_par = 1 and vpPort_name = "". <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a7205236385cb08a466161f2908dfd2eb">hopper_close</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Close.  <a href="#a7205236385cb08a466161f2908dfd2eb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#af8a8e54b78a51fb631dd7e78448f19cd">hopper_set_mode</a> (char dev_interface_mode_inp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set mode.  <a href="#af8a8e54b78a51fb631dd7e78448f19cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#aa001aa322e4f52c4a7f4926314e58560">hopper_port_open</a> (char *vpPort_name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open serial port.  <a href="#aa001aa322e4f52c4a7f4926314e58560"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a0e1122f76918baf6d992a90abe0383d1">hopper_d2xx_open</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open d2xx device.  <a href="#a0e1122f76918baf6d992a90abe0383d1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a58cb3e161f4f9589e990f25407b59c4d">hopper_send_simple_poll</a> (char addr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">request simple poll  <a href="#a58cb3e161f4f9589e990f25407b59c4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a3c3d337d5634f6ef67c9ceb06e8bd1fe">hopper_address_poll</a> (char *addr)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">address poll  <a href="#a3c3d337d5634f6ef67c9ceb06e8bd1fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#addce6b43c40e185b22294c9a39510d9e">hopper_prepare</a> (int inp_par, int port_No, char *vp_Port_name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">prepare hoppers with addresses 3 and 4  <a href="#addce6b43c40e185b22294c9a39510d9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af236916552d881c96775dd3d036509be"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_prepare_addr" ref="af236916552d881c96775dd3d036509be" args="(char addr)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_prepare_addr</b> (char addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0a1ad8a8e82294655e46281e75f74754"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_comms_revision" ref="a0a1ad8a8e82294655e46281e75f74754" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_comms_revision</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3459bc81467a8b2d53d084361c164025"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_comm_status_variables" ref="a3459bc81467a8b2d53d084361c164025" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_comm_status_variables</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61ce0c8559af2ed25e91d46ccb706e20"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_clear_comms_variables" ref="a61ce0c8559af2ed25e91d46ccb706e20" args="(char addr)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_clear_comms_variables</b> (char addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a71726bd5a3c81a127cadfc37a3cf73fa"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_reset_device" ref="a71726bd5a3c81a127cadfc37a3cf73fa" args="(char addr)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_reset_device</b> (char addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc827a7768fe0942aaf71e3890880986"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_manufacturer_id" ref="afc827a7768fe0942aaf71e3890880986" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_manufacturer_id</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73cd33dce3bb8afd5a6079a46b623474"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_equipment_category_id" ref="a73cd33dce3bb8afd5a6079a46b623474" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_equipment_category_id</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af2a006589effc1398f22571febfdfb4c"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_product_code" ref="af2a006589effc1398f22571febfdfb4c" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_product_code</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50266787427d0be5e96521b931d50418"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_serial_nr" ref="a50266787427d0be5e96521b931d50418" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_serial_nr</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b4f630e2c35e8582badec88fa9456a9"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_software_revision" ref="a7b4f630e2c35e8582badec88fa9456a9" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_software_revision</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c94263ed6315e948bf10af49be8a19e"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_test_hopper" ref="a5c94263ed6315e948bf10af49be8a19e" args="(char addr, char vp_hopper_registers[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_test_hopper</b> (char addr, char vp_hopper_registers[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a743dfe283a30ba5af7df8ecc917e9596"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_status" ref="a743dfe283a30ba5af7df8ecc917e9596" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_status</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0574acc5a3b4a232d9c9c54be0722d13"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_emergency_stop" ref="a0574acc5a3b4a232d9c9c54be0722d13" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_emergency_stop</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27d2369cb06cd32e167db9f482362f10"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_empty_hopper" ref="a27d2369cb06cd32e167db9f482362f10" args="(char addr, int coins_to_put)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_empty_hopper</b> (char addr, int coins_to_put)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab20650475bf4fe3a5e56dc92a3bedc18"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_payout_hi_lo_status" ref="ab20650475bf4fe3a5e56dc92a3bedc18" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_payout_hi_lo_status</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca249c3d9b9c1a2f014d0426f4e0d6f6"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_payout_hi_status" ref="aca249c3d9b9c1a2f014d0426f4e0d6f6" args="(char addr, bool *out_bool)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_payout_hi_status</b> (char addr, bool *out_bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6556755cc2f044c0ba099899d765b3c"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_payout_lo_status" ref="ab6556755cc2f044c0ba099899d765b3c" args="(char addr, bool *out_bool)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_payout_lo_status</b> (char addr, bool *out_bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c2c574ced4fb4c63ed3da63584604e3"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_request_dispense_count" ref="a6c2c574ced4fb4c63ed3da63584604e3" args="(char addr, char vp_byte_arr[])" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_request_dispense_count</b> (char addr, char vp_byte_arr[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hopper__ev2000__dll_8h.html#a192aef77c4ec7a7f885613238bc29637">hopper_put_coins_ack</a> (char addr, int Coins_count, int *Coins_rem, int *Coins_paid, int *Coins_unpaid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">put coins with acknowledge  <a href="#a192aef77c4ec7a7f885613238bc29637"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adacd1594e96214b4ae20970ae57ae22b"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_get_high_sensor" ref="adacd1594e96214b4ae20970ae57ae22b" args="(char addr)" -->
bool __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_get_high_sensor</b> (char addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a47b7ba6b590680af1336b85e281ac1f4"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_get_low_sensor" ref="a47b7ba6b590680af1336b85e281ac1f4" args="(char addr)" -->
bool __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_get_low_sensor</b> (char addr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08dc2719faa1f39d1110922ce2b9af25"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_get_error" ref="a08dc2719faa1f39d1110922ce2b9af25" args="(byte addr)" -->
int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><b>hopper_get_error</b> (byte addr)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"></div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="a3c3d337d5634f6ef67c9ceb06e8bd1fe"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_address_poll" ref="a3c3d337d5634f6ef67c9ceb06e8bd1fe" args="(char *addr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a3c3d337d5634f6ef67c9ceb06e8bd1fe">hopper_address_poll</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>address poll </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">char</td><td>* addr - address of requested hopper </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK</li>
<li>255 if hopper not created </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a7205236385cb08a466161f2908dfd2eb"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_close" ref="a7205236385cb08a466161f2908dfd2eb" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a7205236385cb08a466161f2908dfd2eb">hopper_close</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Close. </p>
<p>finalization library</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK</li>
<li>1 - object not created </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a0e1122f76918baf6d992a90abe0383d1"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_d2xx_open" ref="a0e1122f76918baf6d992a90abe0383d1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a0e1122f76918baf6d992a90abe0383d1">hopper_d2xx_open</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open d2xx device. </p>
<p>Opens FTDI through d2xx library. Extended functionality achieved.</p>
<p>//</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">char</td><td>* vpPort_name - serial port name in system used to identify device </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="ac30f818756ad325c74c0b0b0e1bd8252"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_init" ref="ac30f818756ad325c74c0b0b0e1bd8252" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#ac30f818756ad325c74c0b0b0e1bd8252">hopper_init</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Init. </p>
<p>Initialization library Calls Hopper constructor</p>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>1 if object is created before</li>
<li>0 if object is created </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a663d457fe18f6b447e93b26ef6b2ee0c"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_init_prepare_mode_d2xx" ref="a663d457fe18f6b447e93b26ef6b2ee0c" args="(int mode, int inp_par, int port_No, char *vpPort_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a663d457fe18f6b447e93b26ef6b2ee0c">hopper_init_prepare_mode_d2xx</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>inp_par</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port_No</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>vpPort_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialization, set mode d2xx and prepare. </p>
<p>Initializes library: calls Hopper constructor<br/>
 sets mode to d2xx<br/>
 prepares hoppers with address 3 and 4</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>mode: 1 - VCP, 2 - D2XX </td></tr>
    <tr><td class="paramname">int</td><td>inp_par - type of input parameter: 1 - use serial No, 2 - use serial name </td></tr>
    <tr><td class="paramname">int</td><td>port_No - serial No </td></tr>
    <tr><td class="paramname">char</td><td>* vp_Port_name - FTDI device port name in system </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK else set bits:<ul>
<li>0 - init failed</li>
<li>1 - set_mode failed</li>
<li>8 : hopper 3 Simple_poll failed</li>
<li>9 : hopper 4 Simple_poll failed</li>
<li>10 : port open failed</li>
<li>11...15 : errors from hopper_port_open:<ul>
<li>1 - unable to open port</li>
<li>2 - unable to get port state</li>
<li>3 - unable to get timeouts</li>
<li>4 - unable to create timeouts</li>
<li>5 - unable to set port paramters</li>
<li>6 - unable to set timeouts</li>
<li>7 - unable to purge buffer example for bits 15...8: unable to open port b00010100 (d20) |||| |--- 2nd bit is set - errors while opening port / value 1 means "unable to open port" </li>
</ul>
</li>
</ul>
</li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="aa001aa322e4f52c4a7f4926314e58560"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_port_open" ref="aa001aa322e4f52c4a7f4926314e58560" args="(char *vpPort_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#aa001aa322e4f52c4a7f4926314e58560">hopper_port_open</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>vpPort_name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open serial port. </p>
<p>Opens serial port</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">char</td><td>* vpPort_name - port name </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="addce6b43c40e185b22294c9a39510d9e"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_prepare" ref="addce6b43c40e185b22294c9a39510d9e" args="(int inp_par, int port_No, char *vp_Port_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#addce6b43c40e185b22294c9a39510d9e">hopper_prepare</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>inp_par</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>port_No</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>vp_Port_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>prepare hoppers with addresses 3 and 4 </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>inp_par - type of input parameter: 1 - use serial No, 2 - use serial name </td></tr>
    <tr><td class="paramname">int</td><td>port_No - serial No </td></tr>
    <tr><td class="paramname">char</td><td>* vp_Port_name - FTDI device port name in system </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK else set bits:<ul>
<li>0 : hopper 3 Simple_poll failed</li>
<li>1 : hopper 4 Simple_poll failed</li>
<li>2 : port open failed</li>
<li>3...7 : errors from hopper_port_open:<ul>
<li>1 - unable to open port</li>
<li>2 - unable to get port state</li>
<li>3 - unable to get timeouts</li>
<li>4 - unable to create timeouts</li>
<li>5 - unable to set port paramters</li>
<li>6 - unable to set timeouts</li>
<li>7 - unable to purge buffer example: unable to open port b00010100 (d20) |||| |--- 2nd bit is set - errors while opening port / value 1 means "unable to open port" </li>
</ul>
</li>
</ul>
</li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="a192aef77c4ec7a7f885613238bc29637"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_put_coins_ack" ref="a192aef77c4ec7a7f885613238bc29637" args="(char addr, int Coins_count, int *Coins_rem, int *Coins_paid, int *Coins_unpaid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a192aef77c4ec7a7f885613238bc29637">hopper_put_coins_ack</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Coins_count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Coins_rem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Coins_paid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Coins_unpaid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>put coins with acknowledge </p>
<p>Put coins, wait for acknowledge and return results </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">char</td><td>addr - address of requested hopper </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">int</td><td>Coins_count - coins to pay </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">int</td><td>* Coins_rem - coins remaining to pay </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">int</td><td>* Coins_paid - coins paid </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">int</td><td>* Coins_unpaid - coins unpaid from coins was requested in last group </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a58cb3e161f4f9589e990f25407b59c4d"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_send_simple_poll" ref="a58cb3e161f4f9589e990f25407b59c4d" args="(char addr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#a58cb3e161f4f9589e990f25407b59c4d">hopper_send_simple_poll</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>request simple poll </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">int</td><td>addr - address of requested hopper </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK</li>
<li>255 if hopper not created </li>
</ul>
</dd></dl>

</div>
</div>
<a class="anchor" id="af8a8e54b78a51fb631dd7e78448f19cd"></a><!-- doxytag: member="hopper_ev2000_dll.h::hopper_set_mode" ref="af8a8e54b78a51fb631dd7e78448f19cd" args="(char dev_interface_mode_inp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int __stdcall <a class="el" href="hopper__ev2000__dll_8h.html#af8a8e54b78a51fb631dd7e78448f19cd">hopper_set_mode</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>dev_interface_mode_inp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set mode. </p>
<p>Set FTDI connection mode</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">char</td><td>dev_interface_mode_inp - 1 - VCP, 2 - D2XX </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><ul>
<li>0 - OK</li>
<li>255 - library not initialized </li>
</ul>
</dd></dl>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 15 2013 15:24:43 for Hopper_EV2000_Boost_DLL by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
